#include "TollgateEditorScene.h"
#include "scene/TollgateEditorScene/TollgateEditorLayer/TollgateEditorLayer.h"
#include "scene/TollgateEditorScene/TollgateEditorOperateLayer/TollgateEditorOperateLayer.h"
#include "global/GlobalParam.h"

CCScene* TollgateEditorScene::scene(){
	CCScene* scene = NULL;
	do{
		CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
		scene = CCScene::create();
		CC_BREAK_IF(!scene);

		TollgateEditorLayer* tollgateEditorLayer = TollgateEditorLayer::create();
		//tollgateEditorLayer->setPosition(ccp(0,visibleSize.height/2));
		CC_BREAK_IF(!tollgateEditorLayer);

		TollgateEditorOperateLayer* tollgateEditorOperateLayer = TollgateEditorOperateLayer::create(tollgateEditorLayer);
		CC_BREAK_IF(!tollgateEditorOperateLayer);

		scene->addChild(tollgateEditorLayer,GlobalParam::LayerOrder_LvLowest);
		scene->addChild(tollgateEditorOperateLayer,GlobalParam::LayerOrder_LvHighest);

	}while(0);

	return scene;
}